package com.example.dessert.service;

import com.example.dessert.entity.Address;

import java.util.List;

/**
 * @ClassName: AddressService
 * @Description:
 * @Author
 * @Date 2021/12/28
 * @Version 1.0
 */
public interface AddressService {


    //根据用户ID查询是否有该用户
    List<Address> queryAddressList(Long user_id);

    //根据ID查询地址信息
    Address queryAddressById(Long id);

    //保存地址信息
    Long storeAddress(Address address);

    //更新地址信息
    int saveAddress(Address address);

    //根据主键删除信息
    int deleteAddressById(Long id);


}
